import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/home'
// import Item from '@/views/item'

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'home',
    component: Home
  },
  {
    path:'/item',
    name:'item',
    component:()=>import ('@/views/item')

  },
  {
    path:'/score',
    name:'score',
    component:()=>import('@/views/score')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
